package com.fzg.common.demo.GUI.snake;

import cn.hutool.core.io.resource.ClassPathResource;

import javax.swing.*;
import java.net.URL;

/**
 * create by fzg
 * 2022/11/15 14:51
 *
 */


public class Test {
    public static void main(String[] args) {
        try {
            ClassPathResource bodyResource = new ClassPathResource("/static/snake/body.png");
            URL bodyURL = bodyResource.getUrl();
            ImageIcon imageIcon = new ImageIcon(bodyURL);
            System.out.println("找到");
        }catch (Exception e){
            e.printStackTrace();
        }
    }
}
